home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / DefaultCellEditor$3.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  961 b   |  34 lines

  1. package javax.swing;
  2.  
  3. import java.awt.AWTEvent;
  4. import java.awt.event.MouseEvent;
  5. import java.util.EventObject;
  6.  
  7. final class DefaultCellEditor$3 extends DefaultCellEditor.EditorDelegate {
  8.    // $FF: synthetic field
  9.    private final JComboBox val$comboBox;
  10.  
  11.    // $FF: synthetic method
  12.    DefaultCellEditor$3(JComboBox var1, DefaultCellEditor var2) {
  13.       super(var2);
  14.       this.val$comboBox = var1;
  15.    }
  16.  
  17.    public Object getCellEditorValue() {
  18.       return this.val$comboBox.getSelectedItem();
  19.    }
  20.  
  21.    public void setValue(Object var1) {
  22.       this.val$comboBox.setSelectedItem(var1);
  23.    }
  24.  
  25.    boolean shouldSelectCell(EventObject var1) {
  26.       if (var1 instanceof MouseEvent) {
  27.          MouseEvent var2 = (MouseEvent)var1;
  28.          return ((AWTEvent)var2).getID() != 506;
  29.       } else {
  30.          return true;
  31.       }
  32.    }
  33. }
  34.